import { optionCommon } from './common'
export default vm => {
  return {
    ...optionCommon,
    stripe: true,
    headerAlign: 'left',
    align: 'left',
    border: true,
    defaultExpandAll: false,
    selection: true,
    tip: false,
    size: 'mini',
    dialogWidth: 600,
    dialogTop: 0,
    dialogCustomClass: 'tem-dialog margin_top_0',
    column: [
      // {
      //   display: false,
      //   label: '模板id',
      //   prop: 'templateId'
      // },
      {
        search: true,
        label: '模板名称',
        prop: 'name'
      },
      {
        label: '类型',
        prop: 'type',
        type: 'select',
        value: 0,
        search: true,
        dicData: [{ label: '询问笔录', value: 0 }, { label: '勘验笔录', value: 1 }]
      },
      {
        label: '人员类型',
        prop: 'personType',
        type: 'select',
        props: {
          label: 'dictLabel',
          value: 'dictValue'
          // res: 'rows'
        },
        dicUrl: `/system/dict/data/type/person_type?isDic=true`
      },
      {
        label: '排序码',
        prop: 'sortCode',
        dataType: 'number',
        type: 'number'
      },
      {
        span: 24,
        xsSpan: 24,
        smSpan: 24,
        label: '备注',
        prop: 'remark',
        type: ''
      },
      {
        span: 24,
        xsSpan: 24,
        smSpan: 24,
        hide: true,
        label: '常见问答',
        prop: 'archivesQuestionsList'
      }
    ]
  }
}
